import { Swiper } from 'antd-mobile'
import React from 'react'

const MySwiper = () => {
    const data=[
        "./image/1.jpg",
        "./image/2.jpg",
        "./image/3.jpg",
        "./image/4.jpg",
    ]
  return (
    <div>
        <Swiper loop autoplay>
         {
            data.map((v,i)=>{
                return <Swiper.Item key={i}>
                <img src={v} alt='' style={{width: "100%",height: "100px"}}/>
                </Swiper.Item>
            })
         }
        </Swiper>
    </div>
  )
}

export default MySwiper
